#/bin/bash


echo "安装软件包管理工具 brew(国内源)"
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

echo "安装版本管理器 git"
brew install git

echo "安装设置 zsh"
brew install zsh
chsh -s /bin/zsh

echo "为 zsh 配置 oh-my-zsh" 
git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

echo "安装模糊查询工具 fzf" 
brew install fzf


echo "安装文件夹模糊查询工具 fd"
brew install fd

echo "安装命令行文件管理器 ranger"
sudo git clone --depth=1 git://github.com/ranger/ranger.git  /usr/local/
# sudo mv ranger  /usr/local/
sudo ln -s /usr/local/ranger/ranger.py  /usr/bin/ranger

echo "安装命令行的git客户端 lazygit
brew install lazygit

# echo "安装nodejs"

echo "安装yarn"
brew install yarn

# echo "安装nvim"